package ComputerDemo;


public class Test {
    public static void main(String[] args) {
        Computer computer = new Computer();
        computer.powerOn();

        computer.useDevice(new Mouse());
        computer.useDevice((new KeyBoard()));

        computer.powerOff();
    }
}





//public class Test {
//
//    public static void main(String[] args) {
//        Computer computer = new Computer();
//        computer.powerOn();
//
//        computer.useDevice(new Mouse());
//        computer.useDevice(new KeyBoard());
//
//        computer.powerOff();
//    }

